package com.zhentao.ai.model.features;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 趋势特征
 * @author zhentao
 * @date 2024-12-19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TrendFeatures {
    
    /**
     * 线性趋势斜率
     */
    private BigDecimal linearTrend;
    
    /**
     * 趋势方向 (INCREASING, DECREASING, STABLE)
     */
    private String trendDirection;
    
    /**
     * 趋势强度 (R²值)
     */
    private BigDecimal trendStrength;
    
    /**
     * 单调性程度 (0-1)
     */
    private BigDecimal monotonicity;
    
    /**
     * 平均变化率
     */
    private BigDecimal averageChangeRate;
}

